package com.donfu.system.service.house;

import com.donfu.system.domain.house.HouseAddress;

import java.util.List;

/**
 * 收货地址Service接口
 * 
 * @author donfu
 * @date 2021-12-01
 */
public interface IHouseAddressService 
{
    /**
     * 查询收货地址
     * 
     * @param id 收货地址主键
     * @return 收货地址
     */
    public HouseAddress selectHouseAddressById(Long id);

    /**
     * 查询收货地址列表
     * 
     * @param houseAddress 收货地址
     * @return 收货地址集合
     */
    public List<HouseAddress> selectHouseAddressList(HouseAddress houseAddress);

    /**
     * 根据用户查询收货地址
     *
     * @param houseAddress 收货地址
     * @return 收货地址集合
     */
    public List<HouseAddress> selectHouseAddressListByUser(HouseAddress houseAddress);

    /**
     * 新增收货地址
     * 
     * @param houseAddress 收货地址
     * @return 结果
     */
    public int insertHouseAddress(HouseAddress houseAddress);

    /**
     * 修改收货地址
     * 
     * @param houseAddress 收货地址
     * @return 结果
     */
    public int updateHouseAddress(HouseAddress houseAddress);

    /**
     * 批量删除收货地址
     * 
     * @param ids 需要删除的收货地址主键集合
     * @return 结果
     */
    public int deleteHouseAddressByIds(Long[] ids);

    /**
     * 删除收货地址信息
     * 
     * @param id 收货地址主键
     * @return 结果
     */
    public int deleteHouseAddressById(Long id);
}
